home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Toolbox / Menu Defproc 1.0.3 / SizeTkl.h < prev   
Encoding:
C/C++ Source or Header  |  1991-05-02  |  1.5 KB  |  46 lines  |  [TEXT/MPS ]

  1. #ifndef _sizetkl_
  2. #define _sizetkl_
  3. /******************************************************************************\
  4. * Header Files
  5. \******************************************************************************/
  6.  
  7. #ifndef __MENUS__
  8. #include <Menus.h>
  9. #endif
  10.  
  11. #ifndef __TYPES__
  12. #include <Types.h>
  13. #endif
  14.  
  15. #ifndef _concordia_
  16. #include "Concordia.h"
  17. #endif
  18.  
  19.  
  20. /******************************************************************************\
  21. * Constants & Macros
  22. \******************************************************************************/
  23.  
  24. #define iconSize      32 //Horizontal/vertical size of ICON in pixels
  25. #define sicnSize      16 //Horizontal/vertical size of SICN in pixels
  26. #define iconItemGap   4  //Gap between item icon and item string in pixels
  27. #define markItemGap   0  //Gap between marker and item text
  28. #define cmmdItemGap   4  //Gap between item text and command key in pixels
  29. #define itemHorzMarg  1  //Distance between item and left/right of item cell
  30. #define itemVertMarg  0  //Distance between item and top/bottom of item cell
  31. #define iconVertMarg  1  //Distence between item icon and top/bottom of cell
  32. #define stdItemHeight 16 //Standard height of menu item
  33. #define scrnMargin 5     //Minimum # of pixels between menu and screen edges
  34.  
  35.  
  36. /******************************************************************************\
  37. * Function Prototypes
  38. \******************************************************************************/
  39.  
  40. void  DoSizeMsg (MenuHandle);
  41. short CalcItemHeight (Str255, ItemInfoPtr);
  42. short CalcItemWidth (Str255, ItemInfoPtr);
  43.  
  44.  
  45. #endif
  46.